package com.aceitunaproject.shared.message;


/**
 * @author Federico Bergstein
 * 
 * Classes that implement this interface are used to send a Message to
 * the server or the client, they are responsible for adding a Message
 * id and date to it
 * 
 */
public interface MessageSender {

	/**
	 * Sends an Aceituna message using the defined AceitunaSender, adds a
	 * generated ID and the date to the message before sending it
	 * 
	 * @param message the message to send.
	 */
	void sendMessage(Message message);

	/**
	 * Sets the class used to send messages
	 * @param sender The class that will send the messages
	 */
	void setDarkstarSender(AceitunaSender sender);
}
